package StudyCode.summary.mycollection;

import java.util.ArrayList;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class AddArrayToArrayList {
	public static <T> void addArrayToArrayList(T[] array, ArrayList<T> arrayList) {
		if (array == null || arrayList == null)
			return;
		int startLength = array.length;
		for (int i = 0; i < startLength; i++) {
			arrayList.add(array[i]);
		}
	}
}
